package com.ruoyi.quality.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 质量内部损失业务对象 quality_internal_losses
 *
 * @author ruoyi
 * @date 2023-08-16
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class QualityInternalLossesBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long lossesId;

    /**
     * 时间
     */
    @NotNull(message = "时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date lossesTime;

    /**
     * 部门
     */
    @NotBlank(message = "部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptAbbreviation;

    /**
     * 问题类型
     */
    @NotBlank(message = "问题类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lossesType;

    /**
     * 件号
     */
    @NotBlank(message = "件号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String partNumber;

    /**
     * 问题描述
     */
    @NotBlank(message = "问题描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String defectClassification;

    /**
     * 工时
     */
    @NotNull(message = "工时不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer workingHours;

    /**
     * 问题照片
     */
    @NotBlank(message = "问题照片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lossesPicture;

    /**
     * 预留1
     */
    @NotBlank(message = "预留1不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reserve1;

    /**
     * 预留2
     */
    @NotBlank(message = "预留2不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reserve2;


}
